<?php 
function smarty_function_wapText($params, &$smarty) {
	$str = array_pop($params);
	$str = htmlspecialchars( $str, ENT_QUOTES, 'UTF-8' );
	$str = str_replace("õ", "&otilde;", $str);
	$str = str_replace("Õ", "&Otilde;", $str);
	$str = str_replace("ä", "&auml;", $str);
	$str = str_replace("Ä", "&Auml;", $str);
	$str = str_replace("ö", "&ouml;", $str);
	$str = str_replace("Ö", "&Ouml;", $str);
	$str = str_replace("ü", "&uuml;", $str);
	$str = str_replace("Ü", "&Uuml;", $str);
	return $str;
	
}

?>